package com.wlz.md5;

import lombok.extern.slf4j.Slf4j;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;

/**
 * @author wlz
 * @date 2022-10-31  1:50 下午
 */
@Slf4j
public class FileDeleteTest {

    public static void main(String[] args){
      try {
          File file = new File("/Users/wlz/Desktop//test/HUMTEST221027/HUMTEST221028.zip");
          boolean b = Files.deleteIfExists(file.toPath());
          System.out.println(b);
          log.info("file delete fail {}", b);
      }catch (IOException e) {
          log.error("file delete fail: {}", e);
      }

    }
}
